/*
		Code Name: loki is an attempt to create an Operating System geared towards ham
		operators and there equipment.
		
		Copyright (C)2011  Joseph Rugar <ke5mkm@gmail.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef KERNEL_PROCESSOR_X86_TYPES_H
#define KERNEL_PROCESSOR_X86_TYPES_H

/** @addtogroup kernelprocessorx86
* @{ */

/** Define an 8bit signed integer type */
typedef signed char X86int8_t;
/** Define an 8bit unsigned integer type */
typedef unsigned char X86uint8_t;
/** Define an 16bit signed integer type */
typedef signed short X86int16_t;
/** Define an 16bit unsigned integer type */
typedef unsigned short X86uint16_t;
/** Define a 32bit signed integer type */
typedef signed long X86int32_t;
/** Define a 32bit unsigned integer type */
typedef unsigned long X86uint32_t;
/** Define a 64bit signed integer type */
typedef signed long long X86int64_t;
/** Define a 64bit unsigned integer type */
typedef unsigned long long X86uint64_t;

/** Define a signed integer type for pointer arithmetic */
typedef X86int32_t X86intptr_t;
/** Define an unsigned integer type for pointer arithmetic */
typedef X86uint32_t X86uintptr_t;

/** Define a unsigned integer type for physical pointer arithmetic */
typedef X86uint32_t X86physical_uintptr_t;

/** Define an unsigned integer type for the processor registers */
typedef X86uint32_t X86processor_register_t;

/** Define ssize_t */
typedef X86int32_t X86ssize_t;
/** Define size_t */
typedef X86uint32_t X86size_t;

/** Define an I/O port type */
typedef X86uint16_t X86io_port_t;


/** @} */

#endif